/***********************************************************************
 * POJO Class :  DocD.java
 * Author:  Bill Vison
 * Purpose: Defines the Class SysResource
 ***********************************************************************/

package edu.gtcfla.km.model;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import org.vsg.biz.account.model.UserD;
import org.vsg.biz.utils.InjectRepo;

import edu.gtcfla.km.Logs;
import edu.gtcfla.km.repositories.LogsRepo;

@javax.persistence.Entity
@javax.persistence.Table(name = "km_log")
public class LogsD implements Logs, java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1L;

	@Column(name ="log_id")
	@GeneratedValue(generator = "paymentableGenerator")      
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid") 	
	@Id	
	private String id;	
	
	@Override
	public String getId() {
		// TODO Auto-generated method stub
		return id;
	}

	@Override
	public void setId(String id) {
		// TODO Auto-generated method stub
		this.id = id ;
	}

	@Column(name ="name")	
	private String name;
	
	@Override	
	public String getName() {
		return name;
	}

	@Override	
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name ="log_date")	
	private String date;

	@Override
	public void setDate(String newDate) {
		// TODO Auto-generated method stub
		this.date = newDate;
	}

	@Override
	public String getDate() {
		// TODO Auto-generated method stub
		return date;
	}

	@InjectRepo
	@Transient	
	private LogsRepo<Logs, String> LogsRepo;	
	
	public LogsRepo<Logs, String> getLogsRepo() {
		return LogsRepo;
	}

	public void setLogsRepo(LogsRepo<Logs, String> LogsRepo) {
		this.LogsRepo = LogsRepo;
	}
	@Column(name ="operate_type")	
	private String type;
	@Override
	public void setType(String newType) {
		this.type=newType;
	}

	@Override
	public String getType() {
		return type;
	}
	@Column(name ="operate_name")	
	private String typename;
	@Override
	public String getTypename() {
		return typename;
	}
	@Override
	public void setTypename(String typename) {
		this.typename = typename;
	}
	
	@Column(name ="user_id")
	private String userid;

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
}